//
//  NSString+QSHtmlURLStringHandle.m
//  QSSmarkPark-iOS
//
//  Created by 孙俊 on 2018/3/19.
//  Copyright © 2018年 QiSheng. All rights reserved.
//

#import "NSString+QSHtmlURLStringHandle.h"

@implementation NSString (QSHtmlURLStringHandle)

- (NSURL *)noChineseUrl {
#pragma clang diagnostic push
#pragma clang diagnostic ignored"-Wdeprecated-declarations"
    return [NSURL URLWithString:(NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)self, (CFStringRef)@"!$&'()*+,-./:;=?@_~%#[]", NULL,kCFStringEncodingUTF8))];
#pragma clang diagnostic pop
}

@end
